import os

prefix = 'gg'
suffix = '@knlib.com'
# for i in range(1, 51):
#     if i in [1, 7]:
#         continue
for i in [28,41]:
    emailId = prefix + str(i).zfill(2) + suffix
    jar_cmd = 'java -Doperation.name=scanSerialize ' + '-DemailId=' + emailId + ' -Drun.in.aws=true -Dthread.num=10 -jar  serialize.jar'
    cmd = 'nohup ' + jar_cmd + ' > ' + './serialize_log/' + emailId + "_serialize" + ".log &"
    print(cmd)
    # os.system(cmd)
# os.system()

# 01 07 28 41
